package nnsom;

public class FeedRecord {
	String from_time;
	String to_time;
	public int quarter;
	public int nbr_calls;
	public int on_weekend;
	public double avg_call_duration;
	public double perc_free;
	public double perc_fixed;
	public double perc_international;
	public double perc_premium;
	public double perc_hidden;
	String[] quarter_s = { "A", "B", "C", "D" };

	public String toString() {
		return String.format("[%s] " + "[%s] " + "(DAY_QUARTER:%s)"
				+ "(%s)--> " + "NBRCALLS:%d " + "\tAVGCALLDUR:%.2f "
				+ "\tPERC_FREE:%.2f%% " + "\tPERC_FIX:%.2f%% "
				+ "\tPERC_INT:%.2f%% " + "\tPERC_HID:%.2f%% ", from_time,
				to_time, quarter_s[quarter], (on_weekend == 1) ? "weekend"
						: "working day", nbr_calls, avg_call_duration,
				perc_free * 100, perc_fixed * 100, perc_international * 100,
				perc_premium * 100, perc_hidden * 100);
	}

}
